package cn.edu.scau.cmi.xuchuangxiong.client;

import java.util.Scanner;

import cn.edu.scau.cmi.xuchuangxiong.domain.Meat;
import cn.edu.scau.cmi.xuchuangxiong.simpleFactoryMethod.MeatFactory;

public class SimpleFactoryMethodClient {

	public  void main() {
		Scanner sc = new Scanner(System.in);
		System.out.println("Pork is 1; Beef is 2; Chicken is 3;");
		System.out.println("Please input your choices : ");
		String option = sc.nextLine();
		Meat chooseMeat = MeatFactory.produce(option);
		System.out.println("Your choice : ");
		System.out.println(chooseMeat.getType());
	}
 
}
 